package businesslogic.Orderbl;

import VO.OrderInfoVO;
import businesslogic.Updatebl.ExecutionByUpdate;
import service.OrderService.ExecutionService;
import util.Message;
import util.OrderType;
import util.RoomType;

import java.rmi.RemoteException;

/**
 * Created by insomnia on 2016/11/18.
 */
public class ExecutionController implements ExecutionService,ExecutionByUpdate {
    private static final long serialVersionUID = -1250743162177436640L;
    OrderInfoVO orderInfoVO=new OrderInfoVO("111111111111111111","root", OrderType.AbnormalOrder,"root", RoomType.FAMILY_ROOM,1,1,false,"1","1","1","1","1","1","1");

    public ExecutionController() throws RemoteException {
        super();
    }

    public OrderInfoVO getOrderInfo(String orderID)throws RemoteException {
        OrderInfoVO orderVO=new OrderInfoVO("1", "2", null, null, null, 0, 0, false, null, null, null, null, null, null, null);

        return orderVO;
    }

    public Message changeOrder(String orderID)throws RemoteException{
        return Message.SUCCESS;
    }

    public Message changeOrder(String orderID,String actualTime){
        return Message.SUCCESS;
    }
    public Message changeCheckOutTime(String orderID) throws RemoteException {
        return Message.SUCCESS;
    }
}
